import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询风险排查任务全部
export const riskPatrolPlanList = data => {
    return $get('/risk/riskPatrolPlan/list', data)
}

// 查询风险排查任务列表
export const riskPatrolPlanPage = data => {
    return $get('/risk/riskPatrolPlan/page', data)
}

// 新增风险排查任务
export const riskPatrolPlanAdd = data => {
    return $post('/risk/riskPatrolPlan/add', data)
}

// 查询风险排查任务详情
export const riskPatrolPlanDetail = id => {
    return $get('/risk/riskPatrolPlan/detail/'+ id)
}

// 更新风险排查任务
export const riskPatrolPlanUpdate = data => {
    return $post('/risk/riskPatrolPlan/update', data)
}

// 删除风险排查任务
export const riskPatrolPlanDelete = id => {
    return $post('/risk/riskPatrolPlan/delete/'+ id)
}

// 导出风险排查任务
export const riskPatrolPlanExport = (data,fileName) => {
    return $download('/risk/riskPatrolPlan/export',data, fileName)
}
